﻿using System.Collections.Generic;

namespace Idiom.Models
{

    public class IdiomModel
    {

        public int IdiomModelId { get; set; }


        public string Character { get; set; }
        /// <summary>
        /// 读  音
        /// </summary>
        public string Pinyin { get; set; }

        /// <summary>
        /// 释  义
        /// </summary>
        public string Interpretation { get; set; }
        /// <summary>
        /// 出  自
        /// </summary>
        public string Originate { get; set; }
        /// <summary>
        /// 近义词
        /// </summary>
        public List<Similar> Similars { get; set; }
        /// <summary>
        /// 例句
        /// </summary>
        public List<Sentence> ExampleSentence { get; set; }
        /// <summary>
        /// 相关成语
        /// </summary>
        public List<Relevant> Relevants { get; set; }

    }

    public class Sentence
    {

        public int SentenceId { get; set; }

        public string SentenceContent { get; set; }
        /// <summary>
        /// 归属
        /// </summary>
        public IdiomModel Blong { get; set; }

    }
    /// <summary>
    /// 近义词
    /// </summary>
    public class Similar
    {
        public int SimilarId { set; get; }

        /// <summary>
        /// 指向哪个词
        /// </summary>
        public IdiomModel Model { set; get; }
    }

    public class Relevant
    {
        public int RelevantId { set; get; }

        /// <summary>
        /// 指向哪个词
        /// </summary>
        public IdiomModel Model { set; get; }
    }
}
